import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/about',
    name: 'about',
    component: () => import('../views/About.vue')
  },
  {
    path: '/classify',
    name: 'classify',
    component: () => import('../sort/classify.vue')
  },
  {
    path: '/goshop',
    name: 'goshop',
    component: () => import('../sort/goshop.vue')
  },
  {
    path: '/me',
    name: 'me',
    component: () => import('../sort/me.vue')
  },
  {
    path: '/register',
    name: 'register',
    component: () => import('../sort/register.vue')
  },
  {
    path: '/setting',
    name: 'setting',
    component: () => import('../sort/setting.vue')
  },
  {
    path: '/selfcom',
    name: 'selfcom',
    component: () => import('../sort/selfcom.vue')
  },
  {
    path: '/address',
    name: 'address',
    component: () => import('../sort/address.vue')
  },
  {
    path: '/addressedit',
    name: 'addressedit',
    component: () => import('../sort/addressedit.vue')
  },
  {
    path: '/gmlkl',
    name: 'gmlkl',
    component: () => import('../sort/gmlkl.vue')
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
